package com.xia.service.impl;

import com.xia.dao.ClassDao;
import com.xia.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl implements ClassService {

    ClassDao classDao;

    //导入依赖
    @Autowired
    public ClassServiceImpl(ClassDao classDao) {
        this.classDao = classDao;
    }

    public ClassServiceImpl() {
        System.out.println("ClassService");
    }


    public void classList() {
        classDao.classList();
    }
}
